package com.zhiyou.brank.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.brank.mapper.FlyDuty;
import com.zhiyou.brank.service.FlyDutyService;
import com.zhiyou.model.FYDuty;
@Service
public class FlyDutyServiceImpl implements FlyDutyService{
@Autowired
FlyDuty flyDuty;

public List<FYDuty> selectDutyOne(Integer week_id, Integer class_id) {
	// TODO Auto-generated method stub
	return flyDuty.selectDutyOne(week_id, class_id);
}

public List<FYDuty> selectDutyTwo(Integer week_id, Integer class_id) {
	return flyDuty.selectDutyTwo(week_id, class_id);
}

@Override
public void addDuty(Integer teacher_id, Integer teacher_class_id, Integer student_id, String week, Integer class_id,
		Integer week_id) {
	flyDuty.addDuty(teacher_id, teacher_class_id, student_id, week, class_id, week_id);
}

@Override
public void updateDuty(Integer teacher_id, Integer teacher_class_id, Integer student_id, String week, Integer class_id,
		Integer week_id,Integer duty_id) {
	flyDuty.updateDuty(teacher_id, teacher_class_id, student_id, week, class_id, week_id,duty_id);	
}

@Override
public void deleteDuty(Integer duty_id) {
	flyDuty.deleteDuty(duty_id);
}
	
}
